package c.i.b.b.a;

import android.content.Context;
import java.util.Locale;

public class b {
    public static double a = -1.0d;

    public static String a(Context context) {
        String country;
        try {
            Locale locale = context.getResources().getConfiguration().locale;
            String language = locale.getLanguage();
            country = locale.getCountry();
            StringBuilder stringBuilder = new StringBuilder();
            stringBuilder.append(language);
            stringBuilder.append("_");
            stringBuilder.append(country);
            country = stringBuilder.toString();
        } catch (Throwable unused) {
            country = null;
        }
        return country == null ? "" : country.trim();
    }
}
